﻿namespace ICMRemoteEdu.Forms
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class ICMEditValueForm : Form
    {
        private Button btnCancel;
        private Button btnOk;
        private IContainer components;
        private TextBox tbValue;

        public ICMEditValueForm(string value)
        {
            this.InitializeComponent();
            this.tbValue.Text = value;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.btnOk = new Button();
            this.btnCancel = new Button();
            this.tbValue = new TextBox();
            base.SuspendLayout();
            this.btnOk.DialogResult = DialogResult.OK;
            this.btnOk.Location = new Point(0xd4, 0x35);
            this.btnOk.Name = "btnOk";
            this.btnOk.Size = new Size(0x4b, 0x17);
            this.btnOk.TabIndex = 0;
            this.btnOk.Text = "ОК";
            this.btnOk.UseVisualStyleBackColor = true;
            this.btnCancel.DialogResult = DialogResult.Cancel;
            this.btnCancel.Location = new Point(0x125, 0x35);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x4b, 0x17);
            this.btnCancel.TabIndex = 1;
            this.btnCancel.Text = "Отмена";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.tbValue.Location = new Point(12, 12);
            this.tbValue.Name = "tbValue";
            this.tbValue.Size = new Size(0x164, 20);
            this.tbValue.TabIndex = 2;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(380, 0x4f);
            base.Controls.Add(this.tbValue);
            base.Controls.Add(this.btnCancel);
            base.Controls.Add(this.btnOk);
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "ICMEditValueForm";
            base.ShowIcon = false;
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text = "Введите значение";
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        public string Value
        {
            get
            {
                return this.tbValue.Text;
            }
        }
    }
}

